package com.orchard.orchardfarmmanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("inventory_suppliers")
public class InventorySupplier {

    @Id
    private Integer inventoryId;

    private Integer supplierId;

    @Column(nullable = false, length = 255)
    private String purchaserName;

    private Double purchasePrice;

    private LocalDateTime supplyDate;

}